<?php

class Core_Form_Admincp_Setting_Environment extends Nuo_Form
{
	function init()
	{
		$this -> setTitle('Site Environment') -> setDesc('form-desc.Site Environment');

		$this -> addChild('radio', 'core_env_stage', array(
			'label' => 'Site Environment',
			'multiOptions' => array(
				'Development' => 'Development',
				'Production' => 'Production'
			),
			'desc' => ''
		));

		$this -> addChild('radio', 'core_env_mode', array(
			'label' => 'Maintenance Mode',
			'desc' => 'form-desc.Maintenance Mode',
			'multiOptions' => array(
				'Online' => 'Online',
				'Offline' => 'Offline'
			),
		));

		$this -> addChild('text', 'core_offline_code', array(
			'label' => 'Maintenance Code',
			'desc' => 'form-desc.Maintenance Code'
		));

		$this -> addChild('textarea', 'core_offline_message', array(
			'label' => 'Offline Message',
			'desc' => 'form-desc.Offline Message',
			'class' => 'mceEditor',
		));

		$this -> addChild('group', '_footer');

		$this -> _footer -> addChild('submit', '_submit');
		$this -> _footer -> addChild('cancel', '_cancel');
	}

}
